package cn.tedu._07springaop.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("cn.tedu._07springaop");
         CalculatorImpl calculator = context.getBean(CalculatorImpl.class);
         calculator.add(-1, 2);
    }
}
